package com.briup.jd2511.jd2511bookstore.pojo.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Schema(name = "分页多条件获取用户信息的条件实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserPageDto implements Serializable {

	@Schema(name = "登录用户名")
	private String username;

	@Schema(name ="用户状态(0正常，1禁用)")
	private Short status;

	@Schema(name = "开启时间(用户注册时间区间)")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
	private LocalDateTime startTime;

	@Schema(name = "终止时间(用户注册时间区间)")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
	private LocalDateTime endTime;

	@Schema(name = "当前页码")
	private Integer pageNum;

	@Schema(name = "页面大小")
	private Integer pageSize;
}
